﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="LogForm.cs" company="">
//   
// </copyright>
// <summary>
//   The log form.
// </summary>
// --------------------------------------------------------------------------------------------------------------------


using System;
using System.Windows.Forms;
using Systemathics.UserControls;

namespace Systemathics.Applications
{ 

    public partial class LogForm : Form
    {
        private readonly LogControl control;

        public LogForm()
        {
            InitializeComponent();
            control = new LogControl();
            control.Start();
            Controls.Add(control);
            Show();
        }

        protected override void OnHandleDestroyed(EventArgs e)
        {
            control.Stop();
            base.OnHandleDestroyed(e);
        }
    }
}